package cn.xiaolang.function.design_pattern.duty_chain_pattern;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Dean
 * @date 2020-12-23
 */
@Slf4j
@RequiredArgsConstructor
public class MyFilter implements Filter {

    private final String name;

    @Override
    public void doFilter(FilterChain chain) {
        log.info("{}-doFilter", name);
        chain.doFilter();
    }
}
